package com.example.taobao;

import androidx.appcompat.app.AppCompatActivity;

import android.content.Intent;
import android.os.Bundle;
import android.view.View;
import android.widget.ImageButton;
import android.widget.TextView;

public class DataMainActivity extends AppCompatActivity {


    private ImageButton imageButton1,imageButton2,imageButton3,imageButton4;

    private TextView textView1,textView2,textView3;
    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_data_main);

        imageButton1 = findViewById(R.id.ico1);
        imageButton2 = findViewById(R.id.ico2);
        imageButton3 = findViewById(R.id.ico3);
        imageButton4 = findViewById(R.id.ico4);

        textView1 = findViewById(R.id.Dataname);
        textView2 = findViewById(R.id.IphoneData);

        imageButton2.setOnClickListener(onClickListener);

    }

    private View.OnClickListener onClickListener = new View.OnClickListener() {
        @Override
        public void onClick(View view) {
            switch (view.getId()){
                case R.id.ico2:
                    Intent intent = new Intent(DataMainActivity.this,UUserMainActivity.class);
                    startActivityForResult(intent,99);
                    break;
                default:
                    break;
            }
        }
    };


}